package com.dd.cloud.user.entity.classroom;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 媒体小节说明表
 * </p>
 *
 * @author czg
 * @since 2022-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(comment = "媒体小节说明表")
public class MediaSection implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 数据表说明:后台管理用户表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true,isAutoIncrement = true)
    private Integer id;

    /**
     * 小节标题
     */
    @Column(length = 20, comment = "小节标题")
    private String name;

    /**
     * 类型id
     */
    @Column(comment = "类型id")
    private Integer classifyId;

    /**
     * 小节图片地址
     */
    @Column(length = 120, comment = "小节图片地址")
    private String img;

    /**
     * 备注
     */
    @Column(length = 100, comment = "备注")
    private String remarks;

    /**
     * 简介
     */
    @Column(type = MySqlTypeConstant.TEXT, comment = "简介")
    private String introduct;

    /**
     * 状态 1正常使用 -1删除, 2下架
     */
    @Column(comment = "状态 1正常使用 -1删除, 2下架")
    private Integer status;

    /**
     * 累计播放次数
     */
    @Column(comment = "累计播放次数", defaultValue = "0")
    private Integer plays;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间", defaultValue = "now()")
    private LocalDateTime createDate;

    /**
     * 更新时间
     */
    @Column(comment = "更新时间", defaultValue = "now()")
    private LocalDateTime updateDate;

    /**
     * 创建人id
     */
    @Column(comment = "创建人id")
    private Integer createId;

    /**
     * 排序
     */
    @Column(comment = "排序")
    private Integer sort;

}
